package com.shareware.common.demo

import android.app.Application
import android.util.Log
import androidx.annotation.Keep
import com.google.gson.Gson
import com.google.gson.reflect.TypeToken
import com.shareware.common.install
import com.shareware.common.listener.Callback
import com.shareware.common.model.EnvironmentType
import com.shareware.common.secure.aes.AesCbc
import com.shareware.common.secure.aes.AesCbc.Companion.decrypt
import com.shareware.common.setDebugGlobal
import com.shareware.common.trimMemory
import com.shareware.common.utils.*
import java.io.ByteArrayOutputStream
import java.io.File
import java.io.FileOutputStream
import java.io.ObjectOutputStream
import java.text.SimpleDateFormat
import java.util.*
import java.util.zip.GZIPOutputStream

/**
 * desc: 功能描述
 * email: mobiledeveloper@qq.com
 */
@Keep
class MyApplication : Application() {

    override fun onCreate() {
        super.onCreate()
        install(this)
        setDebugGlobal(true, 30)
        appEnvironment = EnvironmentType.TEST.name
        appPrivacyGrant()
        getSimOperatorName()
    }

    override fun onTrimMemory(level: Int) {
        trimMemory(level)
        super.onTrimMemory(level)
    }
}